/**
 * Created by Administrator on 2018/9/18.
 */
(function() {
    var myApp = angular.module('myApp');

    myApp.constant("c1Option", {
        tooltip: {
            trigger: "item",
            formatter: "{a} <br/>{b} : {c} ({d}%)"
        },
        legend: {
            orient: "vertical",
            x: "left",
            data: ["任务总数", "已启用", "未启用"],
            y: "top"
        },
        toolbox: {
            show: true,
            feature: {
                saveAsImage: {
                    show: true
                }
            }
        },
        calculable: false,
        series: [
            {
                name: "数量",
                type: "pie",
                radius: ["50%", "70%"],
                itemStyle: {
                    normal: {
                        label: {
                            show: true,
                            position: "bottom",
                            textStyle: {
                                color: "#0c11e2",
                                fontSize: 12,
                                fontStyle: "normal",
                                fontWeight: "bold"
                            },
                            formatter: "{b}:\n{c}个({d}%)"
                        },
                        labelLine: {
                            show: true
                        }
                    },
                    emphasis: {
                        label: {
                            show: true,
                            position: "center",
                            textStyle: {
                                fontSize: "30",
                                fontWeight: "bold"
                            }
                        }
                    }
                },
                data: [
                    {
                        value: 335,
                        name: "任务总数"
                    },
                    {
                        value: 310,
                        name: "已启用"
                    },
                    {
                        value: 234,
                        name: "未启用"
                    }
                ]
            }
        ],
        color: ["#2f62ef","#2e93ef","#2eccef","#09f3f0", "#6495ed"]
    });
    myApp.constant("c2Option", {
        tooltip: {
            trigger: "item",
            formatter: "{a} <br/>{b} : {c} ({d}%)"
        },
        legend: {
            orient: "vertical",
            x: "left",
            data: ["任务总数", "已启用", "未启用"],
            y: "top"
        },
        toolbox: {
            show: true,
            feature: {
                saveAsImage: {
                    show: true
                }
            }
        },
        calculable: false,
        series: [
            {
                name: "数量",
                type: "pie",
                radius: ["50%", "70%"],
                itemStyle: {
                    normal: {
                        label: {
                            show: true,
                            position: "bottom",
                            textStyle: {
                                color: "#0c11e2",
                                fontSize: 12,
                                fontStyle: "normal",
                                fontWeight: "bold"
                            },
                            formatter: "{b}:\n{c}个({d}%)"
                        },
                        labelLine: {
                            show: true
                        }
                    },
                    emphasis: {
                        label: {
                            show: true,
                            position: "center",
                            textStyle: {
                                fontSize: "30",
                                fontWeight: "bold"
                            }
                        }
                    }
                },
                data: [
                    {
                        value: 335,
                        name: "任务总数"
                    },
                    {
                        value: 310,
                        name: "已启用"
                    },
                    {
                        value: 234,
                        name: "未启用"
                    }
                ]
            }
        ],
        color: ["#2f62ef","#2e93ef","#2eccef","#09f3f0", "#6495ed"]
    })



})();

